package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.AttrRespVo;
import com.atguigu.gulimall.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author mayp
 * @email 1582240996@qq.com
 * @date 2020-06-05 17:09:03
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils baseAttrList(Map<String, Object> params,Long catelogId, String attrType);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    PageUtils getNoattrRelationAttr(Long attrgroupId, Map<String, Object> param);

    void saveAttr(AttrVo attrVo);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attrVo);

//      在指定的s所有属性集合里面，跳出检索属性
    List<Long> selectSearchAttrIds(List<Long> attrIds);

}

